package com.ty.test.utils;

/**
 * Path工具类
 *
 * @Author Tommy
 * @Date 2024/4/18
 */
public class PathUtil {

    static final String ROOT;

    static {
        ROOT = PathUtil.class.getClassLoader().getResource("").getPath();
        System.out.println("ROOT Path: " + ROOT);
    }

    /**
     * 获取此路径的绝对路径
     *
     * @param path
     * @return
     */
    public static String abs(String path) {
        return ROOT + path;
    }
}
